<?php
/* @var $this ShoeController */
/* @var $model Shoe */

$this->breadcrumbs=array(
	'Shoes'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Shoe', 'url'=>array('index')),
	array('label'=>'Create Shoe', 'url'=>array('create')),
);


?>
<div class="content-box">
<div class="content-box-header">
        <h3>产品目录</h3>
        <ul class="content-box-tabs">
          <li><a href="#tab1" class="default-tab">表单</a></li>
        </ul>
        <div class="clear"></div>
 </div>
 <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'shoe-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
				'type'=>'raw',
				'name'=>'item_cover',
				'value'=>'CHtml::image($data->item_cover,$data->shoe_suk,array("width"=>100, "height"=>59))',
				'htmlOptions'=>array(
				                'width'=>'200','style'=>'text-align:center',
				            ),
				
		),
		array(
			'name'=>'shoe_suk',
			'htmlOptions'=>array(				
				'style'=>'text-align:center; font-size:14px; vertical-align:middle',
			),
		),
		array(
			'name'=>'item_parent',
			'value' => 'Categories::model()->findCategorietName($data->item_parent)',
			'htmlOptions'=>array(
					'style'=>'text-align:center; font-size:14px; vertical-align:middle',
			),
		),
		array(
			'name'=>'item_modified',
			'htmlOptions'=>array(
				'style'=>'text-align:center; font-size:14px; vertical-align:middle',
			),
		),
		array(
			'header'=>'操作',
			'class'=>'CButtonColumn',
			'template'=>'{update} {delete}',
			'htmlOptions'=>array(
				'style'=>'text-align:center;  vertical-align:middle',
			),
			'buttons' => array(
				'update'=>array(
						'label'=>'更新',
						'url'=>'array("/backend/updateshoe/$data->ID")',
				),
				'delete'=>array(				
						'label'=>'删除',				
						'url'=>'array("/backend/delshoe/$data->ID")',								
				),
			),	
		),
	),
)); ?>
	</div>
</div>
</div>